package com.vmall.service;

import com.vmall.common.ServerResponse;
import com.vmall.pojo.Category;

import java.util.List;

/**
 * Created by vilen on 2017/8/19.
 */
public interface ICategoryService {
    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse setCategoryName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
